package StateInformation;

import Entities.Scene;
import Phase.ArkanoidPanel;
import java.util.ArrayList;

public class GameState implements IStateInformation{
    private Score score;
    private Life life;
    private User user;
    private Time time;
    private Scene scene;
    private ArrayList<String> world;
    private String finalLevel;

    public GameState(ArkanoidPanel arkanoidPanel){
        score = new Score();
        life = new Life();
        time = new Time();
        user = new User("");
        finalLevel = "";
    }
   
    public int getNumberOfLifes() {
        return life.getNumberOfLifes();
    }

    public void setNumberOfLifes(int i) {
        life.setNumberOfLifes(i);
    }
    
    public Integer getScore() {
        return score.getScore();
    }

    public void setScore(int i) {
         score.setScore(i);
    }

    public void increaseTime() {
        time.increaseTime();
    }
    
    public Time getPlayedTime(){
        return time;
    }

    public User getUser() {
        return user;
    }
    
    public void setScene(Scene scene){
        this.scene = scene;
    }
    
    public void setUser(User user){
        this.user = user;
    }

    public ArrayList<String> getWorld() {
        return world;
    }

    public void setWorld(ArrayList<String> world) {
        this.world = world;
    }
    
    public Scene getScene(){
        return scene;
    }

    public String getFinalLevel() {
        return finalLevel;
    }

    public void setFinalLevel(String finalLevel) {
        this.finalLevel = finalLevel;
    }
}
